function hide_layer(lname) { if(document.getElementById) { document.getElementById(lname).style.visibility = 'hidden'; } else if(document.layers) { document.layers[lname].visibility = 'hide' } else if(document.all) document.all(lname).style.visibility = 'hidden' } function show_layer(lname) { if (show_layer.arguments.length <= 1) { // don't delete, backword compatibility if(document.getElementById) { document.getElementById(lname).style.visibility = 'visible'; } else if(document.layers) { document.layers[lname].visibility = 'show' } else if(document.all) document.all(lname).style.visibility = 'visible' } else { if(document.getElementById) { document.getElementById(lname).style.visibility = 'hidden'; } else if(document.layers) { document.layers[lname].visibility = 'hide' } else if(document.all) document.all(lname).style.visibility = 'hidden' } } function redirect_by_resolution(url_800x600, url_1024x768, other) { var url_640x480; var url_800x600; var url_1024x768; if (screen.width==640||screen.height==480) alert('Для корректного отображения страницы установите разрешение экрана Вашего монитора не менее чем 800х600 точек и перезагрузите страницу'); // --> window.location.replace(url_640x480) // else if (screen.width > 1023 ) // -->||screen.height == 768) // window.location.replace(url_1024x768); else if (screen.width > 799 ) // --> ||screen.height == 600) // window.location.replace(url_800x600); else window.location.replace(other); } function plan() { if (screen.width > 1023 && navigator.appName == ('Microsoft Internet Explorer')) {location.href="http://www.ustjug.museum.ru/objekts/plan/1024/plan1024.htm";} else if (screen.width > 799 && navigator.appName == ('Microsoft Internet Explorer')) {location.href="http://www.ustjug.museum.ru/objekts/plan/800/plan800.htm";} else if (screen.width > 1023 && navigator.appName != ('Microsoft Internet Explorer')) {location.href="http://www.ustjug.museum.ru/objekts/plan/1024/plan1024n.htm";} else if (screen.width > 799 && navigator.appName != ('Microsoft Internet Explorer')) {location.href="http://www.ustjug.museum.ru/objekts/plan/800/plan800n.htm";} else alert('Для корректного отображения страницы установите разрешение экрана Вашего монитора не менее чем 800х600 точек и перезагрузите страницу'); }